<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GraphPaths:  File sorgente src/arco.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GraphPaths
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Creazione di grafi e calcolo dei percorsi minimi</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">arco.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="arco_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef ARCO_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ARCO_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="nodo_8h.html">nodo.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="elemento__ui_8h.html">elemento_ui.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="classArco.html">    7</a></span>&#160;<span class="keyword">class </span><a class="code" href="classArco.html">Arco</a> : <span class="keyword">public</span> <a class="code" href="classElemento__ui.html">Elemento_ui</a></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;{</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        <a class="code" href="classArco.html#a85cc87105b15c65032b137f2e1cbe908">Arco</a>();</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classArco.html#a1ed7e453a7af8cd7de332293ac126ce8">   16</a></span>&#160;        <a class="code" href="classArco.html#a1ed7e453a7af8cd7de332293ac126ce8">Arco</a>(<a class="code" href="classNodo.html">Nodo</a>* origine, <a class="code" href="classNodo.html">Nodo</a>* destinazione, <span class="keywordtype">int</span> lunghezza) : origine(origine), destinazione(destinazione), lunghezza(lunghezza)</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        {   }</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classArco.html#a7671883a568bc4e4db9222ea8e350ad3">~Arco</a>();</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classArco.html#af9b0e255bfe19026e780d5a3f910bac7">   24</a></span>&#160;        gint <a class="code" href="classArco.html#af9b0e255bfe19026e780d5a3f910bac7">get_lunghezza</a>() { <span class="keywordflow">return</span> lunghezza; }</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classArco.html#a82bf81d7fdf6bf79c13b5c8db36a4f2c">   28</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classArco.html#a82bf81d7fdf6bf79c13b5c8db36a4f2c">set_lunghezza</a>(gint val) { lunghezza = val; }</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classArco.html#a2a38be55c3364b9e65321aeefe4087fa">   33</a></span>&#160;        <a class="code" href="classNodo.html">Nodo</a>* <a class="code" href="classArco.html#a2a38be55c3364b9e65321aeefe4087fa">get_origine</a>() { <span class="keywordflow">return</span> origine; }</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classArco.html#a72bdc32a4d6c3ee94946bd20f28d7a8c">   37</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classArco.html#a72bdc32a4d6c3ee94946bd20f28d7a8c">set_origine</a>(<a class="code" href="classNodo.html">Nodo</a>* val) { origine = val; }</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classArco.html#add874f6324d6637d95edef50ab1493fd">   42</a></span>&#160;        <a class="code" href="classNodo.html">Nodo</a>* <a class="code" href="classArco.html#add874f6324d6637d95edef50ab1493fd">get_destinazione</a>() { <span class="keywordflow">return</span> destinazione; }</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classArco.html#a22ad9ad0c81c721f5f384eba9fc72128">   46</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classArco.html#a22ad9ad0c81c721f5f384eba9fc72128">set_destinazione</a>(<a class="code" href="classNodo.html">Nodo</a>* val) { destinazione = val; }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        gboolean <a class="code" href="classArco.html#a40398be4e1b49654d75622bb679f54b2">is_minimo</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classArco.html#adb2e69b3b14e032f1b1dca2a54e13baf">update</a>(gdouble <a class="code" href="classElemento__ui.html#a65ba6be564ea56bcf8ab14322794db54">x</a>, gdouble <a class="code" href="classElemento__ui.html#a36749900d4a5b1e4d8db239691a531f8">y</a>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classArco.html#a92b9a91ae5aebbc351268a6325e2b3d2">draw</a>(cairo_t* &amp;cr);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> gboolean <a class="code" href="classArco.html#ade6178d292892d3763d73cfd1593485d">intersect</a>(gdouble <a class="code" href="classElemento__ui.html#a65ba6be564ea56bcf8ab14322794db54">x</a>, gdouble <a class="code" href="classElemento__ui.html#a36749900d4a5b1e4d8db239691a531f8">y</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <a class="code" href="classNodo.html">Nodo</a>* origine; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="classNodo.html">Nodo</a>* destinazione; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        gint lunghezza; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordtype">void</span> calcola_vertici_freccia(gdouble start_x, gdouble start_y, gdouble end_x, gdouble end_y, gdouble&amp; x1, gdouble&amp; y1, gdouble&amp; x2, gdouble&amp; y2);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordtype">void</span> calcola_nuovi_inizio_fine(gdouble &amp;start_x, gdouble &amp;start_y, gdouble &amp;end_x, gdouble &amp;end_y);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;};</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#endif // ARCO_H</span></div>
<div class="ttc" id="classArco_html_a2a38be55c3364b9e65321aeefe4087fa"><div class="ttname"><a href="classArco.html#a2a38be55c3364b9e65321aeefe4087fa">Arco::get_origine</a></div><div class="ttdeci">Nodo * get_origine()</div><div class="ttdef"><b>Definition:</b> arco.h:33</div></div>
<div class="ttc" id="nodo_8h_html"><div class="ttname"><a href="nodo_8h.html">nodo.h</a></div></div>
<div class="ttc" id="classArco_html_a92b9a91ae5aebbc351268a6325e2b3d2"><div class="ttname"><a href="classArco.html#a92b9a91ae5aebbc351268a6325e2b3d2">Arco::draw</a></div><div class="ttdeci">virtual void draw(cairo_t *&amp;cr)</div><div class="ttdef"><b>Definition:</b> arco.cc:75</div></div>
<div class="ttc" id="classElemento__ui_html"><div class="ttname"><a href="classElemento__ui.html">Elemento_ui</a></div><div class="ttdef"><b>Definition:</b> elemento_ui.h:7</div></div>
<div class="ttc" id="classElemento__ui_html_a65ba6be564ea56bcf8ab14322794db54"><div class="ttname"><a href="classElemento__ui.html#a65ba6be564ea56bcf8ab14322794db54">Elemento_ui::x</a></div><div class="ttdeci">gdouble x</div><div class="ttdoc">Coordinata X dell&#39;oggetto. </div><div class="ttdef"><b>Definition:</b> elemento_ui.h:85</div></div>
<div class="ttc" id="classArco_html_a22ad9ad0c81c721f5f384eba9fc72128"><div class="ttname"><a href="classArco.html#a22ad9ad0c81c721f5f384eba9fc72128">Arco::set_destinazione</a></div><div class="ttdeci">void set_destinazione(Nodo *val)</div><div class="ttdef"><b>Definition:</b> arco.h:46</div></div>
<div class="ttc" id="classArco_html_a7671883a568bc4e4db9222ea8e350ad3"><div class="ttname"><a href="classArco.html#a7671883a568bc4e4db9222ea8e350ad3">Arco::~Arco</a></div><div class="ttdeci">virtual ~Arco()</div><div class="ttdef"><b>Definition:</b> arco.cc:9</div></div>
<div class="ttc" id="elemento__ui_8h_html"><div class="ttname"><a href="elemento__ui_8h.html">elemento_ui.h</a></div></div>
<div class="ttc" id="classArco_html"><div class="ttname"><a href="classArco.html">Arco</a></div><div class="ttdef"><b>Definition:</b> arco.h:7</div></div>
<div class="ttc" id="classArco_html_af9b0e255bfe19026e780d5a3f910bac7"><div class="ttname"><a href="classArco.html#af9b0e255bfe19026e780d5a3f910bac7">Arco::get_lunghezza</a></div><div class="ttdeci">gint get_lunghezza()</div><div class="ttdef"><b>Definition:</b> arco.h:24</div></div>
<div class="ttc" id="classArco_html_adb2e69b3b14e032f1b1dca2a54e13baf"><div class="ttname"><a href="classArco.html#adb2e69b3b14e032f1b1dca2a54e13baf">Arco::update</a></div><div class="ttdeci">virtual void update(gdouble x, gdouble y)</div><div class="ttdef"><b>Definition:</b> arco.cc:145</div></div>
<div class="ttc" id="classArco_html_a1ed7e453a7af8cd7de332293ac126ce8"><div class="ttname"><a href="classArco.html#a1ed7e453a7af8cd7de332293ac126ce8">Arco::Arco</a></div><div class="ttdeci">Arco(Nodo *origine, Nodo *destinazione, int lunghezza)</div><div class="ttdef"><b>Definition:</b> arco.h:16</div></div>
<div class="ttc" id="classNodo_html"><div class="ttname"><a href="classNodo.html">Nodo</a></div><div class="ttdef"><b>Definition:</b> nodo.h:10</div></div>
<div class="ttc" id="classArco_html_a85cc87105b15c65032b137f2e1cbe908"><div class="ttname"><a href="classArco.html#a85cc87105b15c65032b137f2e1cbe908">Arco::Arco</a></div><div class="ttdeci">Arco()</div><div class="ttdef"><b>Definition:</b> arco.cc:4</div></div>
<div class="ttc" id="classArco_html_a82bf81d7fdf6bf79c13b5c8db36a4f2c"><div class="ttname"><a href="classArco.html#a82bf81d7fdf6bf79c13b5c8db36a4f2c">Arco::set_lunghezza</a></div><div class="ttdeci">void set_lunghezza(gint val)</div><div class="ttdef"><b>Definition:</b> arco.h:28</div></div>
<div class="ttc" id="classArco_html_add874f6324d6637d95edef50ab1493fd"><div class="ttname"><a href="classArco.html#add874f6324d6637d95edef50ab1493fd">Arco::get_destinazione</a></div><div class="ttdeci">Nodo * get_destinazione()</div><div class="ttdef"><b>Definition:</b> arco.h:42</div></div>
<div class="ttc" id="classElemento__ui_html_a36749900d4a5b1e4d8db239691a531f8"><div class="ttname"><a href="classElemento__ui.html#a36749900d4a5b1e4d8db239691a531f8">Elemento_ui::y</a></div><div class="ttdeci">gdouble y</div><div class="ttdoc">Coordinata Y dell&#39;oggetto. </div><div class="ttdef"><b>Definition:</b> elemento_ui.h:86</div></div>
<div class="ttc" id="classArco_html_a40398be4e1b49654d75622bb679f54b2"><div class="ttname"><a href="classArco.html#a40398be4e1b49654d75622bb679f54b2">Arco::is_minimo</a></div><div class="ttdeci">gboolean is_minimo()</div><div class="ttdef"><b>Definition:</b> arco.cc:68</div></div>
<div class="ttc" id="classArco_html_ade6178d292892d3763d73cfd1593485d"><div class="ttname"><a href="classArco.html#ade6178d292892d3763d73cfd1593485d">Arco::intersect</a></div><div class="ttdeci">virtual gboolean intersect(gdouble x, gdouble y)</div><div class="ttdef"><b>Definition:</b> arco.cc:14</div></div>
<div class="ttc" id="classArco_html_a72bdc32a4d6c3ee94946bd20f28d7a8c"><div class="ttname"><a href="classArco.html#a72bdc32a4d6c3ee94946bd20f28d7a8c">Arco::set_origine</a></div><div class="ttdeci">void set_origine(Nodo *val)</div><div class="ttdef"><b>Definition:</b> arco.h:37</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 1 Lug 2014 08:40:17 per GraphPaths da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
